<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>sys::FileStore</title>
  <meta http-equiv='Content-type' content='text/html;charset=UTF-8' />
  <link rel='stylesheet' type='text/css' href='../style.css'/>
</head>
<body>
<p>
  <a href='../index.html'>
    <img src='../logo.png' alt='Sedona'/>
  </a>
</p>
<div class='nav'>
  <a href='../index.html'>Index</a> |
  <a href='../api.html'>Kits</a> |
  <a href='index.html'>sys</a>
</div>
<h1 class='title'>sys::FileStore</h1>
<hr/>
<pre class='inheritance'><a href='../sys/Obj.html'>sys::Obj</a>
  <a href='../sys/Virtual.html'>sys::Virtual</a>
    sys::FileStore
</pre>
<em>public </em> class <b>FileStore</b>  <br>
<hr/>
<p>FileStore is used to implement the backing storage of File &#xa;based I/O.  Typically each storage device such as static &#xa;RAM or EEPROM implements a subclass of FileStore and declares&#xa;a singleton called &#x22;instance&#x22;.  Files are mapped to a FileStore&#xa;instance by &#x27;PlatformServcie.fileStore&#x27;.</p>
<hr/>
<dl>
<dt>close</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>bool close(<a href='../sys/File.html'>File</a> f)</b>

</code></p>
<p>Implementation for &#x27;File.close&#x27;.</p>
</dd>
<dt>flush</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>void flush(<a href='../sys/File.html'>File</a> f)</b>

</code></p>
<p>Implementation for &#x27;File.out.flush&#x27;.</p>
</dd>
<dt>open</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>bool open(<a href='../sys/File.html'>File</a> f, <a href='../sys/Str.html'>Str</a> mode)</b>

</code></p>
<p>Implementation for &#x27;File.open&#x27;.</p>
</dd>
<dt>read</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>int read(<a href='../sys/File.html'>File</a> f)</b>

</code></p>
<p>Implementation for &#x27;File.in.read&#x27;.</p>
</dd>
<dt>readBytes</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>int readBytes(<a href='../sys/File.html'>File</a> f, byte[] b, int off, int len)</b>

</code></p>
<p>Implementation for &#x27;File.in.readBytes&#x27;.</p>
</dd>
<dt>rename</dt>
<dd><p class='sig'><code><em><em>public</em> <em>static</em> <em>native</em> </em><b>bool rename(<a href='../sys/Str.html'>Str</a> from, <a href='../sys/Str.html'>Str</a> to)</b>

</code></p>
<p>Rename a file. Return true on success, false on failure.</p>
</dd>
<dt>seek</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>bool seek(<a href='../sys/File.html'>File</a> f, int pos)</b>

</code></p>
<p>Implementation for &#x27;File.seek&#x27;.</p>
</dd>
<dt>size</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>int size(<a href='../sys/File.html'>File</a> f)</b>

</code></p>
<p>Implementation for &#x27;File.size&#x27;.  &#xa;Must work without opening the file.</p>
</dd>
<dt>sys</dt>
<dd><p class='sig'><code><em><em>public</em> <em>static</em> <em>inline</em> </em><b><a href='../sys/FileStore.html'>FileStore</a> sys</b>

</code></p>
<p>Built-in system file storage implementation.</p>
</dd>
<dt>tell</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>int tell(<a href='../sys/File.html'>File</a> f)</b>

</code></p>
<p>Implementation for &#x27;File.tell&#x27;.</p>
</dd>
<dt>write</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>bool write(<a href='../sys/File.html'>File</a> f, int b)</b>

</code></p>
<p>Implementation for &#x27;File.out.write&#x27;.</p>
</dd>
<dt>writeBytes</dt>
<dd><p class='sig'><code><em><em>public</em> <em>virtual</em> </em><b>bool writeBytes(<a href='../sys/File.html'>File</a> f, byte[] b, int off, int len)</b>

</code></p>
<p>Implementation for &#x27;File.out.writeBytes&#x27;.</p>
</dd>
</dl>
<div class='nav'>
  <a href='../index.html'>Index</a> |
  <a href='../api.html'>Kits</a> |
  <a href='index.html'>sys</a>
</div>
<div class='copyright'>Copyright &#169; 2009, Tridium, Inc.</div>
</body>
</html>
